package com.springboot.demo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
public class PageRequest {
    @ApiModelProperty(value = "当前页",required = true)
    @NotNull(message = "当前页码不能为空")
    private Integer pageNum;

    @ApiModelProperty(value = "每页数量",required = true)
    @NotNull(message = "每页数量不能为空")
    private Integer pageSize;
}